package day1107_3;

import java.util.Scanner;

//   a<=500          0
//   500<=a<=1000   a*0.03
//   1000<=a<=2000  a*0.05
//   2000<=a        a*0.08
public class F1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);//2.
        System.out.println("请输入奖金：");
        double  a=sc.nextDouble();
        if(a<=500){
            System.out.println("应交税款为0");
        }else if( 500<a && a<=1000){
            System.out.println("应交税款为"+a*0.03);
        }else if(1000<a  && a<=2000) {
            System.out.println("应交税款为" + a * 0.05);
        }else{
            System.out.println("应交税款为" + a * 0.08);
        }
    }
}

